﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceStack.Redis;
using System.Threading;

namespace Redis.Client
{
    class Program
    {
        static void Main(string[] args)
        {

            using (var redisClient = RedisManager.GetClient())
            {
                using (var test = redisClient.GetTypedClient<string>())
                {
                    test.Lists["print"].Enqueue("test queue");
                    var s = test.Lists["print"].Dequeue();
                    Console.WriteLine(s);
                }
            }
            Console.ReadLine();

        }
    }
}
